home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat3
/
gethostid.0
< prev
next >
Wrap
Text File
|
1996-09-02
|
1KB
|
38 lines
GETHOSTID(3) UNIX Programmer's Manual GETHOSTID(3)
NNAAMMEE
ggeetthhoossttiidd, sseetthhoossttiidd - get/set unique identifier of current host
SSYYNNOOPPSSIISS
##iinncclluuddee <<uunniissttdd..hh>>
_l_o_n_g
ggeetthhoossttiidd(_v_o_i_d)
_i_n_t
sseetthhoossttiidd(_l_o_n_g _h_o_s_t_i_d)
DDEESSCCRRIIPPTTIIOONN
SSeetthhoossttiidd() establishes a 32-bit identifier for the current processor
that is intended to be unique among all UNIX systems in existence. This
is normally a DARPA Internet address for the local machine. This call is
allowed only to the super-user and is normally performed at boot time.
GGeetthhoossttiidd() returns the 32-bit identifier for the current processor.
This function has been deprecated. The hostid should be set or retrieved
by use of sysctl(3).
SSEEEE AALLSSOO
sysctl(3), gethostname(3), sysctl(8).
BBUUGGSS
32 bits for the identifier is too small.
HHIISSTTOORRYY
The ggeetthhoossttiidd() and sseetthhoossttiidd() syscalls appeared in 4.2BSD and were
dropped in 4.4BSD.
4.2 Berkeley Distribution June 2, 1993 1